//------------------------------------------------------------------------------
// The contents of this file are subject to the nopCommerce Public License Version 1.0 ("License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at  http://www.nopCommerce.com/License.aspx. 
// 
// Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. 
// See the License for the specific language governing rights and limitations under the License.
// 
// The Original Code is nopCommerce.
// The Initial Developer of the Original Code is NopSolutions.
// All Rights Reserved.
// 
// Contributor(s): _______. 
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;
using Tathata.Common.Caching;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;
using System.Data;
using System.Globalization;
using Tathata.Common.DAL;
using Tathata.Common.BLL.Entities;
using Tathata.Common.BLL.EntityCollections;
using Tathata.Common.DAL.Managers;

namespace Tathata.Common.BLL.Managers
{
    /// <summary>
    /// TaxByStateProvince manager
    /// </summary>
    public class TaxByStateProvinceManager
    {
        #region Methods
        /// <summary>
        /// Deletes a TaxByStateProvince
        /// </summary>
        /// <param name="TaxByStateProvinceID">The TaxByStateProvince identifier</param>
        public static void DeleteTaxByStateProvince(int TaxByStateProvinceID)
        {
            TaxByStateProvinceDBManager.DeleteTaxByStateProvince(TaxByStateProvinceID);
        }

        /// <summary>
        /// Gets a TaxByStateProvince
        /// </summary>
        /// <param name="TaxByStateProvinceID">The TaxByStateProvince identifier</param>
        /// <returns>TaxByStateProvince</returns>
        public static TaxByStateProvince GetByTaxByStateProvinceID(int TaxByStateProvinceID)
        {
            return TaxByStateProvinceDBManager.GetByTaxByStateProvinceID(TaxByStateProvinceID);
        }

        /// <summary>
        /// Gets a TaxByStateProvince collection by state/province identifier
        /// </summary>
        /// <param name="StateProvinceID">The state/province identifier</param>
        /// <returns>TaxByStateProvince collection</returns>
        public static TaxByStateProvinceCollection GetAllByStateProvinceID(int StateProvinceID)
        {
            return TaxByStateProvinceDBManager.GetAllByStateProvinceID(StateProvinceID);
        }

        /// <summary>
        /// Inserts a TaxByStateProvince
        /// </summary>
        /// <param name="TaxCategoryID">The tax category identifier</param>
        /// <param name="StateProvinceID">The state/province identifier</param>
        /// <param name="Percentage">The percentage</param>
        /// <returns>TaxByStateProvince</returns>
        public static TaxByStateProvince InsertTaxByStateProvince(int TaxCategoryID, int StateProvinceID, decimal Percentage)
        {
            return TaxByStateProvinceDBManager.InsertTaxByStateProvince(TaxCategoryID, StateProvinceID, Percentage);
        }

        /// <summary>
        /// Updates the TaxByStateProvince
        /// </summary>
        /// <param name="TaxByStateProvinceID">The TaxByStateProvince identifier</param>
        /// <param name="TaxCategoryID">The tax category identifier</param>
        /// <param name="StateProvinceID">The state/province identifier</param>
        /// <param name="Percentage">The percentage</param>
        /// <returns>TaxByStateProvince</returns>
        public static TaxByStateProvince UpdateTaxByStateProvince(int TaxByStateProvinceID, int TaxCategoryID, int StateProvinceID, decimal Percentage)
        {
            return TaxByStateProvinceDBManager.UpdateTaxByStateProvince(TaxByStateProvinceID, TaxCategoryID, StateProvinceID, Percentage);
        }
        #endregion
    }
}
